# Author:Nana
import time

now_time = time.strftime("%Y-%m-%d %A %H:%M", time.localtime())
print("当前时间是：",now_time)
today = time.strftime("%A", time.localtime())
print("今天是：",today)
print("-"*50)

user_name=("nana")
user_password=("123456")
vip = str(input("是否是会员？yes or no\n"))

if vip == "yes":
    print("您是会员！您有10次查询机会")
    count = 10
else:
    print("您不是会员！您有5次查询机会")
    count = 5

while True:

    username = input("name：")
    password = input("password：")
    count -= 1

    if username == user_name:
        if password == user_password:
            print("欢迎光临~~")
            break
        else:
            if count == 0:
                print("哦莫，没有机会了哦，再去想想吧！")
                break
            else:
                print("您的账号或密码错误，请重新输入，你还有", count, "次机会！")
    else:
        if count == 0:
            print("哦莫，没有机会了哦，再去想想吧！")
            break
        else:
            print("您的账号或密码错误，请重新输入，您还有", count, "次机会！")

if today == "Monday":
    print("今天只有两节课哦~")
elif today == "Tuesday":
    print("今天要打起精神，有三节课呢~")
elif today == "Wednesday":
    print("今天两节课，但是有体育，记得带水哦~")
elif today == "Thursday":
    print("太快乐啦，只有一节课~")
elif today == "Friday":
    print("今天两节课，坚持住，快要周末啦~")
else:
    print("放假啦！注意休息！")

day_of_week = str(input("您想查询哪天的课? Monday,Tuesday,Wednesday,Thursday,Friday,Saturday or Sunday\n"))
if day_of_week == "Monday":
    print("python语言，大学英语（三）")
elif day_of_week == "Tuesday":
    print("用户研究，毛概实践，网站运营与管理")
elif day_of_week == "Wednesday":
    print("排球，创业基础（实践）")
elif day_of_week == "Thursday":
    print("大学英语（三）")
elif day_of_week == "Friday":
    print("illustrato软件应用，毛概理论")
else:
    print("没有课哦~")

class_of_week = str(input("查找具体的课程信息  ps:输入课程名称  \n"))
if class_of_week == "Python语言":
    print("许志超 2实203")
elif class_of_week == "写作训练":
    print("朱钦文 1-202")
elif class_of_week == "大学英语（三）":
    print("Monday 汤雪梅 10-304/Thursday 李国庆 10-104")
elif class_of_week == "大学英语":
    print("大学英语（三） Monday 汤雪梅 10-304/Thursday 李国庆 10-104")
elif class_of_week == "用户研究":
    print("宋歌 3实312")
elif class_of_week == "毛概实践":
    print("杨益孜 7-402")
elif class_of_week == "网站运营与管理":
    print("胡美香 3实304")
elif class_of_week == "排球":
    print("秦晓金 西区排球场")
elif class_of_week == "创业基础（实践）":
    print("张保磊 1-205")
elif class_of_week == "illustrato软件应用":
    print("阚凤霞 新综合楼612")
elif class_of_week == "毛概理论":
    print("杨益孜 7-402")
else:
    print("您没有选读该课程哦~")

print("谢谢您的使用，祝您生活愉快~")








